<!doctype html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>jQuery实用HTML元素热点标记插件|DEMO_jQuery之家-自由分享jQuery、html5、css3的插件库</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="css/default.css">
	<link rel="stylesheet" type="text/css" href="css/jquery.hotspot.css">
	<link rel="stylesheet" type="text/css" href="css/style.css">
	<!--[if IE]>
		<script src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
	<![endif]-->
</head>
<body>
	<div class="htmleaf-container">
		<header class="htmleaf-header">
			<h1>jQuery实用HTML元素热点标记插件 - Admin mode<span>A jquery plugin for creating and displaying Hotspots in an HTML element.</span></h1>
			<div class="htmleaf-links">
				<a class="htmleaf-icon icon-htmleaf-home-outline" href="http://www.htmleaf.com/" title="jQuery之家" target="_blank"><span> jQuery之家</span></a>
				<a class="htmleaf-icon icon-htmleaf-arrow-forward-outline" href="http://www.htmleaf.com/jQuery/Tooltips/201505231888.html" title="返回下载页" target="_blank"><span> 返回下载页</span></a>
			</div>
			<div class="htmleaf-demo center">
			  <a href="index.html">Display mode</a>
			  <a href="index2.html" class="current">Admin mode</a>
			</div>
		</header>
		<div class="container">

			<div class="panel panel-info" id="example-admin">
				<div class="panel-heading">
					<h4>Example - Admin mode</h4>
				</div>
				<div class="panel-body">
					<div class="col-md-6">
						<div id="theElement-a">
							<img src="images/sample-image1.jpg" width="480" height="400">
						</div>
					</div>
					<div class="col-md-6">
						<div id="theElement-b">
							<img src="images/sample-image2.jpg" width="480" height="400">
						</div>
					</div>
				</div>
			</div>

		</div>
		<div class="related">
		    <h3>如果你喜欢这个插件，那么你可能也喜欢:</h3>
		    <a href="http://www.htmleaf.com/html5/html5donghua/20141014184.html">
			  <img src="related/1.jpg" width="300" alt="9种html5+css3炫酷tooltip工具提示插件效果"/>
			  <h3>9种html5+css3炫酷tooltip工具提示插件效果</h3>
			</a>
			<a href="http://www.htmleaf.com/jQuery/Tooltips/20141222956.html">
			  <img src="related/2.jpg" width="300" alt="jQuery和css3滑动显示tooltips工具提示特效"/>
			  <h3>jQuery和css3滑动显示tooltips工具提示特效</h3>
			</a>
		</div>
	</div>
	
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/jquery.hotspot.js"></script>

	<script type="text/javascript">
		$("#theElement-a").hotspot({
			mode: "admin",
			// uncomment
			/*ajax: true,
			ajaxOptions: {
				'url': 'links.to.server'
			},*/
			LS_Variable: "HotspotPlugin-a",
			done_btnId: 'done-a',
			remove_btnId: 'remove-a',
			server_btnId: 'server-a',

			done_btnClass: 'btn btn-success controls',
			remove_btnClass: 'btn btn-danger controls',
			sync_btnClass: 'btn btn-info controls',

			afterSave: function(message) {
				alert(message);
			},
			afterRemove: function(message) {
				alert(message);
				window.location.reload();
			},
			afterSyncToServer: function(message) {
				alert(message);
			}
		});

		$("#theElement-b").hotspot({
			mode: "admin",
			// uncomment
			/*ajax: true,
			ajaxOptions: {
				'url': 'links.to.server'
			},*/
			LS_Variable: "HotspotPlugin-b",
			done_btnId: 'done-b',
			remove_btnId: 'remove-b',
			server_btnId: 'server-b',

			done_btnClass: 'btn btn-success controls',
			remove_btnClass: 'btn btn-danger controls',
			sync_btnClass: 'btn btn-info controls',

			afterSave: function(message) {
				alert(message);
			},
			afterRemove: function(message) {
				alert(message);
				window.location.reload();
			},
			afterSyncToServer: function(message) {
				alert(message);
			}
		});
	</script>
</body>
</html>